package com.pachong.frameworkdemo.module1;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.pachong.android.baseuicomponent.activity.BaseActivity;
import com.pachong.android.framework.search.SearchActivity;
import com.pachong.frameworkdemo.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SearchDemoActivity extends BaseActivity {

    @Bind(R.id.button)
    Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
    }

    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.activity_search_demo, null);

        return view;
    }

    @OnClick(R.id.button)
    public void onClick() {
        Intent intent = new Intent(this, SearchActivity.class);
        startActivity(intent);
    }
}
